<?php


namespace App\controllers\v1;


use App\controllers\Base;
use Consts\RedisKey;
use Helper\Output;
use Helper\Mysql;
use Helper\Redis;
use Helper\Reg;


class Problem extends Base
{

    /**
     * 获取问题列表
     * @param $request
     * @param $response
     * @return false|string
     * @throws \Exception
     */
    public function getProblem($request, $response){

        $list  = Mysql::getInstance()
            ->where('platform_id',$request->post['p'])
            ->where('is_show',1)
            ->get('problem');

        return Output::json(200,$list);

    }










}